package com.zhizhi;

import com.zhizhi.util.SpringContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author Mr.Yu
 * @date 2021/3/24 15:45
 */
@SpringBootApplication
@EnableScheduling
@EnableAsync
public class ZhizhiApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(ZhizhiApplication.class, args);
        SpringContextUtil.setApplicationContext(context);
    }

}
